/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Personagem;

import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;

/**
 *
 * @author Administrador
 */
public class BDPersonagem {
    // Create an object to be written
    Personagem personage = new Personagem("Joao", 12);
// Create the output streams
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    DataOutputStream output = new DataOutputStream(baos);


// Write the values to be saved to the output streams
    //output.writeUTF(null);



    // Get the byte array with the saved values
    byte[] data = baos.toByteArray();
// Write the record to the Record Store
    //int id = recordStore.addRecord(data, 0, data.length);
}
